package com.gem.day18;

import java.io.*;
import java.util.*;

/**
 * 本类用来演示Java注解@SuppressWarnings
 * 它的作用使用来抑制警告信息
 * 
 * 注意:也可以通过开发工具来设置
 * 
 * @author easonsy
 * 2020年8月13日 下午2:25:18
 */
//@SuppressWarnings({ "deprecation", "resource", "unused", "rawtypes", "serial" })
@SuppressWarnings("all")
public class SuppressWarningsDemo implements Serializable {

	//@SuppressWarnings("deprecation")
	public static void main(String[] args) throws FileNotFoundException {
		//@SuppressWarnings("unused")
		int i = 3;

		//@SuppressWarnings({ "resource", "unused" })
		InputStream in = new FileInputStream("");

		//@SuppressWarnings("deprecation")
		new Date().getYear();

		//@SuppressWarnings({ "rawtypes", "unused" })
		List list = new ArrayList();
	}
}
